unsubscribe

suspend fun unsubscribe(subscription: String, delay: Long = 2000)

Removes a subscription to a record or collection allowing listen to no longer receive events from the desired target.

Parameters

subscription

The record or collection to unsubscribe to (*) for wildcard

delay

The delay waited before sending the request if the client is not yet connected


suspend fun unsubscribe(delay: Long = 2000, vararg subscriptionList: String)

Removes a subscriptions to a record or collection allowing listen to no longer receive events from the desired target.

Parameters

delay

The delay waited before sending the request if the client is not yet connected

subscriptionList

The records or collections to unsubscribe to (*) for wildcard